package com.model;

import java.util.List;

public class Group {
    private int id;
    private String name;
    private String description;
    private List<String> members; // 假设每个小组有成员列表

    // 构造函数
    public Group(int id, String name) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.members = members;
    }

    // 无参构造函数
    public Group() {
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<String> getMembers() {
        return members;
    }

    public void setMembers(List<String> members) {
        this.members = members;
    }

    // toString 方法，用于打印 Group 对象的信息
    @Override
    public String toString() {
        return name; // 返回小组名称
    }
}
